<div class="row">
    <div class="col-md-12">
        <!-- BEGIN SAMPLE TABLE PORTLET-->
        <div class="data-div">
            <div class="widget collapsed " style="margin-bottom:5px;">
                <div class="widget-header ">
                    <span class="widget-caption">数据列表</span>

                    <div class="widget-buttons buttons-bordered">
                        <button href="admin_user/add_page" data-handler="INLINE" class="btn btn-palegreen btn-xs"  data-title="新增用户">
                            添加用户
                        </button>
                    </div>

                </div>
            </div>



            <div class="widget no-header ">

                <div class="widget-body">
                    <table class="table table-condensed table-bordered table-hover " id="data_table_admin_user_list_1">
                    </table>

                </div>
            </div>

        </div>
        <!-- END SAMPLE TABLE PORTLET-->
    </div>
</div>
<script type="text/javascript" th:inline="javascript">
    $(document).ready(function() {

        //look-up 查询条件 会员
        /* Select2Ex.handleForm4select2({target:$("#form_data_table_ssp_logs_adCountSite_1")});*/

        TableAjax.init('data_table_admin_user_list_1',{
            sAjaxSource: "admin_user/list",
            aaSorting: [[1, "desc" ]], // 需要自定义
            uxDataTitle:"null",
            uxCheckable:false,
            uxCloseScroll:true,
            uxDrapable:false,
            aoColumns: [
                {sTitle:'用户ID',  mData: "id",uxLongText:true},
                {sTitle:'用户名',  mData: "userName"},
                {sTitle:'昵称',  mData: "nike"},
                {sTitle:'联系方式',  mData: "phoneNumber"},
                {sTitle:'用户类型',  mData: "adminType",
                    mRender:function(data,d,all){
                        var jiaose = "";
                        if(all.role==1){jiaose="管理员";}
                        if(all.role==11){jiaose="记账员";}
                        if(all.role==12){jiaose="财务";}
                        if(all.role==2){jiaose="API或SDK合作用户";}
                        if(all.role==3){jiaose="rom类合作用户";}
                        return jiaose;
                    }
                },
                {sTitle:'操作',
                    mData: "id" ,
                    mRender:function(data,d,all){
                        return '<a class="blue-stripes" style="margin:20px" data-handler="INLINE" data-title="修改用户" data-form=true href="admin_user/mod_page?id='+all.id+'">修改</a>'
                            ;
                    }
                }
            ]

        });

    });

</script>